for n in range(100,1000):
    x = n//100
    y = (n//10)%10
    z = n%10
    if n==x**3+y**3+z**3:
        print("水仙花数是{}".format(n))